export default {
  namespaced: true,//加了命名空间，就不会全触发
  state: { age2: 100 },
  getters: {
    profile(state) { return state.age2 } // -> getters['account/profile']
  },
  mutations: {
    changeAge(state, payload) {
      state.age2 += payload
    },
    syncChange() {
      console.log('c-syncChange')
    }
  },
  modules: {
    d: {
      namespaced: true,//加了命名空间，就不会全触发
      state: { age3: 200 },
      mutations: {
        syncChange() {
          console.log('d-syncChange')
        }
      }
    }
  }
}